<template>
	<view class="webview">
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(option) {
			this.url = option.url;
			if (option.title) {
				uni.setNavigationBarTitle({
					title: option.title
				})
			}
		},
		methods: {

		},
		components: {

		}
	}
</script>

<style lang="scss" scoped>
	.webview {}
</style>